<template>
  <div class="home-header">
    <a-skeleton active avatar :loading="skeletonLoading">
      <div class="home-subject-title">
        <div class="home-subject-title-nr">{{ homeHeaderSubject.title }}</div>
      </div>
    </a-skeleton>
  </div>
</template>

<script lang="ts">
/*eslint-disable*/
import { Component, Vue, Prop } from "vue-property-decorator";

@Component({
  name: "HomeHeader",
})
export default class HomeHeader extends Vue {
  @Prop()
  homeHeaderSubject;
  @Prop()
  skeletonLoading;
}
</script>

<style scoped lang="scss">
.home-header {
  padding: 8px;

  .home-subject-title {
    color: #2e2e2e;
    overflow: hidden;
    word-break: break-all;
    font-weight: bold;
    font-size: 19px;
    height: 100%;
    display: flex;
    grid-template-columns: 5fr 1fr;
    font-family: Roboto, Tahoma, Arial, "Droid Sans", "Helvetica Neue",
      "Droid Sans Fallback", "Heiti SC", sans-self;
    justify-content: center;
    align-items: center;
  }

  .home-subject-table {
    display: flex;
    padding: 10px 0;

    .home-subject-table-img {
      flex: 1 1;
      vertical-align: top;
      text-align: center;

      .home-subject-table-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        vertical-align: middle;
      }

      .home-subject-table-title {
        color: #999;
      }
    }

    .home-subject-table-content {
      color: #999;
      vertical-align: top;
      line-height: 1.4;
      flex: 4;
    }
  }
}
</style>
